Skip to content

Conversation

@walbourn
Copy link
Member

@walbourn walbourn commented Nov 4, 2025

This updates the use of CMake build options to address a few issues:

  • For VCPKG port, I want to add more features to control use of XInput vs. GameInput vs. WGI

  • For cases where you are building for Windows 10 or later, the default logic will try to use WGI for input. This causes link issues when the library was built for Windows 10, but the client wasn't or vice-versa. This ensures the expected build define is in the CMake targets--MSBuild targets still have to deal with this manually.

  • GameInput supports MinGW64, but otherwise must use XInput rather than WGI.

  • This also includes some cleanup of the CMake logic.

@walbourn walbourn self-assigned this Nov 4, 2025
@walbourn walbourn added the cmake Related to CMake build label Nov 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the CMake build configuration to simplify XAudio build options and improve input API handling. The changes remove the deprecated BUILD_XAUDIO_WIN8 option and add explicit configuration for GameInput support on MinGW builds.

  • Removes references to the deprecated BUILD_XAUDIO_WIN8 option throughout the build system
  • Adds explicit configuration for input APIs (GameInput, WGI, XInput) in platform-specific sections
  • Introduces MinGW build presets with GameInput support

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
CMakeLists.txt Removes BUILD_XAUDIO_WIN8 references, adds explicit input API configuration for Xbox and UWP targets, adds MinGW-specific configuration logic, and updates conditional compilation checks
CMakePresets.json Adds two new MinGW build presets with GameInput support enabled

@walbourn walbourn merged commit 7da9593 into main Nov 5, 2025
106 checks passed
@walbourn walbourn deleted the cmakefeatures branch November 5, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to CMake build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants